#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "../Common/include/symboltable.h"

struct SymbolTable *t_int_getTable()
{
    struct SymbolTable *table = malloc(sizeof(struct SymbolTable));
    struct SymbolTable *next = 0;
    
    table->symbolType = Class;
    strcpy(table->internal, "t_main_0");
    table->modifiers = FLAG_PUBLIC | FLAG_STATIC;
    table->name = malloc(sizeof(struct Name));
    table->name->next = malloc(sizeof(struct Name));
    strcpy(table->name->identifier, "System");
    strcpy(table->name->next->identifier, "IO");
    table->next = malloc(sizeof(struct SymbolTable));
    next = table->next;
    
    next->symbolType = Func;
    strcpy(next->internal, "t_println_1");
    next->modifiers = FLAG_FINAL;
    next->name = malloc(sizeof(struct Name));
    next->name->next = malloc(sizeof(struct Name));
    next->name->next->next = malloc(sizeof(struct Name));
    strcpy(next->name->identifier, "System");
    strcpy(next->name->next->identifier, "IO");
    strcpy(next->name->next->next->identifier, "println");
    //next->next = malloc(sizeof(struct SymbolTable));
    //next = next->next;
    
    return table;
}

